<!-- HTML header for doxygen 1.8.3.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>CUB: cub::Device Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra_stylesheet.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38890655-1']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CUB
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecub.html">cub</a></li><li class="navelem"><a class="el" href="classcub_1_1_device.html">Device</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Methods</a> &#124;
<a href="#pub-attribs">Public Members</a> &#124;
<a href="classcub_1_1_device-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cub::Device Class Reference<div class="ingroups"><a class="el" href="group___util_module.html">Generic CUB utilities</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed description</h2>
<div class="textblock"><p>Properties of a given CUDA device and the corresponding PTX bundle. </p>

<p>Definition at line <a class="el" href="util__device_8cuh_source.html#l00160">160</a> of file <a class="el" href="util__device_8cuh_source.html">util_device.cuh</a>.</p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Methods</h2></td></tr>
<tr class="memitem:a3c986a6aa2d3b69fe8a7ab14c85a6477"><td class="memTemplParams" colspan="2">template&lt;typename ArchProps &gt; </td></tr>
<tr class="memitem:a3c986a6aa2d3b69fe8a7ab14c85a6477"><td class="memTemplItemLeft" align="right" valign="top">__host__ __device__ <br class="typebreak"/>
__forceinline__ void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a3c986a6aa2d3b69fe8a7ab14c85a6477">Callback</a> ()</td></tr>
<tr class="separator:a3c986a6aa2d3b69fe8a7ab14c85a6477"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c1aecec381d2dce80120362feb2d0ca"><td class="memItemLeft" align="right" valign="top">__host__ __device__ <br class="typebreak"/>
__forceinline__ cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a4c1aecec381d2dce80120362feb2d0ca">Init</a> (int device_ordinal)</td></tr>
<tr class="separator:a4c1aecec381d2dce80120362feb2d0ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5217a10a5c9d26ce226e257665a45ce"><td class="memItemLeft" align="right" valign="top">__host__ __device__ <br class="typebreak"/>
__forceinline__ cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#af5217a10a5c9d26ce226e257665a45ce">Init</a> ()</td></tr>
<tr class="separator:af5217a10a5c9d26ce226e257665a45ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a618bbf36a5737a9b1533ff65834e88e8"><td class="memTemplParams" colspan="2">template&lt;typename KernelPtr &gt; </td></tr>
<tr class="memitem:a618bbf36a5737a9b1533ff65834e88e8"><td class="memTemplItemLeft" align="right" valign="top">__host__ __device__ <br class="typebreak"/>
__forceinline__ cudaError_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a618bbf36a5737a9b1533ff65834e88e8">MaxSmOccupancy</a> (int &amp;max_sm_occupancy, KernelPtr kernel_ptr, int block_threads)</td></tr>
<tr class="separator:a618bbf36a5737a9b1533ff65834e88e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Members</h2></td></tr>
<tr class="memitem:ab55f58e3252d369ee50d34b190df2277"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab55f58e3252d369ee50d34b190df2277"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#ab55f58e3252d369ee50d34b190df2277">max_block_threads</a></td></tr>
<tr class="memdesc:ab55f58e3252d369ee50d34b190df2277"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of threads per threadblock. <br/></td></tr>
<tr class="separator:ab55f58e3252d369ee50d34b190df2277"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac614bed852b56bf8c616803aa8601caf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac614bed852b56bf8c616803aa8601caf"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#ac614bed852b56bf8c616803aa8601caf">max_sm_blocks</a></td></tr>
<tr class="memdesc:ac614bed852b56bf8c616803aa8601caf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of threadblocks per SM. <br/></td></tr>
<tr class="separator:ac614bed852b56bf8c616803aa8601caf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af321be8fe9aecd0942d04739f7520c61"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af321be8fe9aecd0942d04739f7520c61"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#af321be8fe9aecd0942d04739f7520c61">max_sm_registers</a></td></tr>
<tr class="memdesc:af321be8fe9aecd0942d04739f7520c61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of registers per SM. <br/></td></tr>
<tr class="separator:af321be8fe9aecd0942d04739f7520c61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a963c497e442ac283b2655faa578614d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a963c497e442ac283b2655faa578614d3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a963c497e442ac283b2655faa578614d3">max_sm_threads</a></td></tr>
<tr class="memdesc:a963c497e442ac283b2655faa578614d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of threads per SM. <br/></td></tr>
<tr class="separator:a963c497e442ac283b2655faa578614d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ee84e74af9939896bb81b48d4843d17"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ee84e74af9939896bb81b48d4843d17"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a5ee84e74af9939896bb81b48d4843d17">max_sm_warps</a></td></tr>
<tr class="memdesc:a5ee84e74af9939896bb81b48d4843d17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of warps per SM. <br/></td></tr>
<tr class="separator:a5ee84e74af9939896bb81b48d4843d17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a416909debdeaa9116d7087ed55ed870f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a416909debdeaa9116d7087ed55ed870f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a416909debdeaa9116d7087ed55ed870f">ptx_version</a></td></tr>
<tr class="memdesc:a416909debdeaa9116d7087ed55ed870f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bundled PTX version for target device (PTX version X.YZ in XYZ integer form) <br/></td></tr>
<tr class="separator:a416909debdeaa9116d7087ed55ed870f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa432ab8fdb1d1117b29811422c83a187"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa432ab8fdb1d1117b29811422c83a187"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#aa432ab8fdb1d1117b29811422c83a187">reg_alloc_unit</a></td></tr>
<tr class="memdesc:aa432ab8fdb1d1117b29811422c83a187"><td class="mdescLeft">&#160;</td><td class="mdescRight">Granularity of register allocation within the SM. <br/></td></tr>
<tr class="separator:aa432ab8fdb1d1117b29811422c83a187"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a721a479d183aaa1846c69de998f84ffc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a721a479d183aaa1846c69de998f84ffc"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a721a479d183aaa1846c69de998f84ffc">regs_by_block</a></td></tr>
<tr class="memdesc:a721a479d183aaa1846c69de998f84ffc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether registers are allocated by threadblock (or by warp) <br/></td></tr>
<tr class="separator:a721a479d183aaa1846c69de998f84ffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68885a90ea0badcffc2a3511b0b4fd5c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a68885a90ea0badcffc2a3511b0b4fd5c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a68885a90ea0badcffc2a3511b0b4fd5c">sm_count</a></td></tr>
<tr class="memdesc:a68885a90ea0badcffc2a3511b0b4fd5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of SMs. <br/></td></tr>
<tr class="separator:a68885a90ea0badcffc2a3511b0b4fd5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9b36b3b0edb207aeee60110fbee6406"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9b36b3b0edb207aeee60110fbee6406"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#ac9b36b3b0edb207aeee60110fbee6406">sm_version</a></td></tr>
<tr class="memdesc:ac9b36b3b0edb207aeee60110fbee6406"><td class="mdescLeft">&#160;</td><td class="mdescRight">SM version of target device (SM version X.YZ in XYZ integer form) <br/></td></tr>
<tr class="separator:ac9b36b3b0edb207aeee60110fbee6406"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca17efd166d916008f0fc378adc00b1f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca17efd166d916008f0fc378adc00b1f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#aca17efd166d916008f0fc378adc00b1f">smem_alloc_unit</a></td></tr>
<tr class="memdesc:aca17efd166d916008f0fc378adc00b1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Smem segment size. <br/></td></tr>
<tr class="separator:aca17efd166d916008f0fc378adc00b1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a909d34dd31bdb6f754a603e8eb2b10ab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a909d34dd31bdb6f754a603e8eb2b10ab"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a909d34dd31bdb6f754a603e8eb2b10ab">smem_bank_bytes</a></td></tr>
<tr class="memdesc:a909d34dd31bdb6f754a603e8eb2b10ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of bytes per SM bank. <br/></td></tr>
<tr class="separator:a909d34dd31bdb6f754a603e8eb2b10ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e835add85abdf0eb640c551abec2a0b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2e835add85abdf0eb640c551abec2a0b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a2e835add85abdf0eb640c551abec2a0b">smem_banks</a></td></tr>
<tr class="memdesc:a2e835add85abdf0eb640c551abec2a0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of smem banks. <br/></td></tr>
<tr class="separator:a2e835add85abdf0eb640c551abec2a0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a838c9a2e207c38ef24e79a40bccdd1ac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a838c9a2e207c38ef24e79a40bccdd1ac"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a838c9a2e207c38ef24e79a40bccdd1ac">smem_bytes</a></td></tr>
<tr class="memdesc:a838c9a2e207c38ef24e79a40bccdd1ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Smem bytes per SM. <br/></td></tr>
<tr class="separator:a838c9a2e207c38ef24e79a40bccdd1ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f8afb6f319b0dbd689f3f1188fc20b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5f8afb6f319b0dbd689f3f1188fc20b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#ac5f8afb6f319b0dbd689f3f1188fc20b">warp_alloc_unit</a></td></tr>
<tr class="memdesc:ac5f8afb6f319b0dbd689f3f1188fc20b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Granularity of warp allocation within the SM. <br/></td></tr>
<tr class="separator:ac5f8afb6f319b0dbd689f3f1188fc20b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4498c242e597f67a4a752426ae262049"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4498c242e597f67a4a752426ae262049"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcub_1_1_device.html#a4498c242e597f67a4a752426ae262049">warp_threads</a></td></tr>
<tr class="memdesc:a4498c242e597f67a4a752426ae262049"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of threads per warp. <br/></td></tr>
<tr class="separator:a4498c242e597f67a4a752426ae262049"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3c986a6aa2d3b69fe8a7ab14c85a6477"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ArchProps &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">__host__ __device__ __forceinline__ void cub::Device::Callback </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Callback for initializing device properties </p>

<p>Definition at line <a class="el" href="util__device_8cuh_source.html#l00200">200</a> of file <a class="el" href="util__device_8cuh_source.html">util_device.cuh</a>.</p>

</div>
</div>
<a class="anchor" id="a4c1aecec381d2dce80120362feb2d0ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">__host__ __device__ __forceinline__ cudaError_t cub::Device::Init </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>device_ordinal</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Initializer. Properties are retrieved for the specified GPU ordinal. </p>

<p>Definition at line <a class="el" href="util__device_8cuh_source.html#l00224">224</a> of file <a class="el" href="util__device_8cuh_source.html">util_device.cuh</a>.</p>

</div>
</div>
<a class="anchor" id="af5217a10a5c9d26ce226e257665a45ce"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">__host__ __device__ __forceinline__ cudaError_t cub::Device::Init </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Initializer. Properties are retrieved for the current GPU ordinal. </p>

<p>Definition at line <a class="el" href="util__device_8cuh_source.html#l00269">269</a> of file <a class="el" href="util__device_8cuh_source.html">util_device.cuh</a>.</p>

</div>
</div>
<a class="anchor" id="a618bbf36a5737a9b1533ff65834e88e8"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename KernelPtr &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">__host__ __device__ __forceinline__ cudaError_t cub::Device::MaxSmOccupancy </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>max_sm_occupancy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">KernelPtr&#160;</td>
          <td class="paramname"><em>kernel_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>block_threads</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Computes maximum SM occupancy in thread blocks for the given kernel </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">max_sm_occupancy</td><td>maximum number of thread blocks that can reside on a single SM </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">kernel_ptr</td><td>Kernel pointer for which to compute SM occupancy </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">block_threads</td><td>Number of threads per thread block </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="util__device_8cuh_source.html#l00297">297</a> of file <a class="el" href="util__device_8cuh_source.html">util_device.cuh</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="util__device_8cuh_source.html">util_device.cuh</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.3.1-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Aug 23 2013 17:31:12 for CUB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
<br>
&copy; 2013 NVIDIA Corporation
</small></address>
</body>
</html>
